﻿@model IEnumerable<CircleCut.Models.Circle>

@{
    ViewBag.Title = "Circles";
}

<h2 style="color:yellowgreen;text-align:center">毛坯列表</h2>

<p>
    @Html.ActionLink("新增 毛坯", "Create")
    @using (Html.BeginForm("Index", "Circles", FormMethod.Get))
    {
    <p>
        编号: @Html.DropDownList("searchNum", "All")
        <input type="submit" value="检索" />        
    </p>
    }
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Number)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Diameter)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Demand)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Number)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Diameter)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Demand)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("详情", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
